<% // Copyright 2008 Carnegie Mellon University
// Licensed under the Apache License, Version 2.0 (the "License"); 
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//  
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, 
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License. %>
<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page pageEncoding="UTF-8" %>
<%@page import="edu.cmu.lti.sepia.data.session.SessionManager"%>
<%@page import="edu.cmu.lti.sepia.data.db.SQL"%>
<% 
response.setHeader("progma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
request.setCharacterEncoding("UTF-8");
%>
<%
String taskNameShort = request.getParameter("taskNameShort");
String displayLang = request.getParameter("displayLang");
if (taskNameShort==null) {
  taskNameShort = (String)session.getAttribute("taskNameShort");
  session.setAttribute("taskNameShort", taskNameShort);
}
if (displayLang==null) {
  displayLang = (String)session.getAttribute("displayLang");
  session.setAttribute("displayLang", displayLang);
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="no-cache" http-equiv="Cache-Control">
<title>Standard Evaluation Package for Information Access</title>
<link rel="stylesheet" href="css/common.css" type="text/css" />
<link rel="stylesheet" href="css/top.css" type="text/css" />
<script type="text/javascript" src="js/external/jquery.js"></script>
<script type="text/javascript"><!-- jQuery.noConflict(); //--></script>
<script type="text/javascript" src="js/external/prototype.js"></script>
<script type="text/javascript" src="js/resources.js.jsp?taskNameShort=<%=taskNameShort%>&displayLang=<%=displayLang%>"></script>
<script type="text/javascript" src="js/shared.js"></script>
<script type="text/javascript" src="js/task_menu.js"></script>
<!-- <script type="text/javascript" src="js/top_googlechart.js.jsp"></script> -->
</head>

<body onload="init(lang);applyPermission()">

<!-- HEADER -->
<div id="header"></div>

<br>
<div align="center" style="display:none"><h2><script>document.writeln(taskName);</script></h2></div>

<table border="0" cellpadding="10" cellspacing="0" align="center">
  <tr>
    <td valign="top">
      <fieldset style="text-align:center;">
        <legend id="msg_for_developer">For Topic Developers</legend>
        <br>
        <input id="msg_ir" name="msg_ir" onclick="top.location.href='search/indri.jsp?isStandalone=true'" class="td_button" type="button" value="Search Corpus" />
        <br>
        <input id="msg_td" name="msg_td" onclick="top.location.href='topic_development/index.html'" class="td_button" type="button" value="Topic Development" disabled />
        <br>
        <input id="msg_ne" name="msg_ne" onclick="top.location.href='nugget_extraction/index.html'" class="td_button" type="button" value="Nugget Extraction" disabled />
        <br>
        <input id="msg_nv" name="msg_nv" onclick="top.location.href='nugget_voting/index.html'" class="td_button" type="button" value="Nugget Voting" disabled />
        <hr>
        <input id="msg_progress_browser" name="msg_progress_browser" onclick="top.location.href='organizer/progress_browser_td.jsp'" class="td_button" type="button" value="Progress" disabled />
        <hr>
        <input id="msg_importer" name="msg_importer" onclick="top.location.href='io/topic_importer.html'" class="td_button" type="button" value="Import" disabled />
        <br>
        <input id="msg_exporter" name="msg_exporter" onclick="top.location.href='export/index.jsp'" class="td_button" type="button" value="Export" disabled />
      </fieldset>
      <br>
      <fieldset style="text-align:center;">
        <legend id="msg_for_assessor">For Evaluators</legend>
        <br>
        <input id="msg_he_ir" name="msg_he_ir" onclick="top.location.href='evaluation/ir.html'" class="td_button" type="button" value="IR Evaluation" disabled />
        <br>
        <input id="msg_he_qa" name="msg_he_qa" onclick="top.location.href='evaluation/qa.html'" class="td_button" type="button" value="QA Evaluation" disabled />
        <hr>
        <input id="msg_progress_ir_eval" name="msg_progress_ir_eval" onclick="top.location.href='organizer/progress_browser_ir_eval.jsp'" class="td_button" type="button" value="IR Eval Progress" disabled />
        <br>
        <input id="msg_progress_qa_eval" name="msg_progress_qa_eval" onclick="top.location.href='organizer/progress_browser_qa_eval.jsp'" class="td_button" type="button" value="QA Eval Progress" disabled />
        <hr>
        <input id="msg_eval_importer" name="msg_eval_importer" onclick="top.location.href='io/pool_importer.html'" class="td_button" type="button" value="Import" disabled />
        <br>
        <input id="msg_eval_exporter" name="msg_eval_exporter" onclick="top.location.href='export/index.jsp?evalMode=true'" class="td_button" type="button" value="Export" disabled />
      </fieldset>
    </td>
    <td valign="top">
      <fieldset style="text-align:center;">
      <br>
        <legend id="msg_for_participant">For Task Participants</legend>
        <input id="msg_upload" name="msg_upload" onclick="top.location.href='io/uploader.html'" class="td_button" type="button" value="Upload" disabled />
        <br>
        <input id="msg_download" name="msg_download" onclick="top.location.href='io/downloader.html'" class="td_button" type="button" value="Download" disabled />
      </fieldset>
    </td>
  </tr>
</table>

<br>
<br>

<!-- FOOTER -->
<div id="footer"></div>

</body>
</html>
